<?php

require __DIR__ . '/../vendor/autoload.php';

$app = require_once __DIR__ . '/../bootstrap/app.php';

$app->make(\App\Console\Kernel::class)->bootstrap();

/* ============== Write Codes Below ================= */

echo '>>> Start Laravel from CLI' . PHP_EOL;

$agentId = 19;
$memberId = 'BBT202308011648353021';
$configs = \App\Models\AgentConfig::listConfigsByAgentId($agentId);

$adaPayService = new \App\Services\AdaPayService($agentId);

$adaPayService->settlePublicAccount($memberId, [
    'card_id' => '35000180800232888',
    'card_name' => '北京燕归宿生物科技有限公司',
    'tel_no' => '13409163077',
    'bank_code' => '03030000',
    'bank_name' => '光大银行',
    'bank_acct_type' => 1,
    'prov_code' => '0011',
    'area_code' => '1100',
]);
